home *** CD-ROM | disk | FTP | other *** search
-
-
-
- VVVVkkkkPPPPrrrrooooggggrrrraaaammmm((((3333xxxx)))) VVVVkkkkPPPPrrrrooooggggrrrraaaammmm((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- VkProgram - Object-oriented interface to subprogram execution
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- VkCallbackObject :
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <Vk/VkProgram.h>
-
- PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
- VkProgram(const char* cmd, int killChildOnExit = 1);
- virtual void ~VkProgram(void);
-
-
- CCCCoooonnnnttttrrrroooollll FFFFuuuunnnnccccttttiiiioooonnnnssss
- virtual VkSubProcess run(void);
-
-
- SSSSeeeettttuuuupppp FFFFuuuunnnnccccttttiiiioooonnnnssss
- void redirectIn(int do_redirect);
-
-
- PPPPRRRROOOOTTTTEEEECCCCTTTTEEEEDDDD PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
- PPPPrrrrooootttteeeecccctttteeeedddd DDDDaaaattttaaaa MMMMeeeemmmmbbbbeeeerrrrssss
- char* _cmd;
- const int _killChildOnExit;
- int _redirectIn;
-
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The VkProgram class is an object-oriented interface to fork/exec.
- It spawns a program and passes the output back to the application.
-
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- VVVVkkkkPPPPrrrrooooggggrrrraaaammmm(((())))
- VkProgram(const char* cmd,
- int killChildOnExit = 1);
- virtual void ~VkProgram(void);
-
-
- Sets up the VkProgram object. The first argument specifies a
- command to execute when the run() method is called. The second
- argument indicates that the running child, if any, should be killed
- whenever this process exits.
-
- rrrruuuunnnn(((())))
- virtual VkSubProcess run(void);
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- VVVVkkkkPPPPrrrrooooggggrrrraaaammmm((((3333xxxx)))) VVVVkkkkPPPPrrrrooooggggrrrraaaammmm((((3333xxxx))))
-
-
-
- Forks and execs a child process, running the command specified in
- the constructor. Returns the VkSubProcess object created as a
- result.
-
- rrrreeeeddddiiiirrrreeeeccccttttIIIInnnn(((())))
- void redirectIn(int do_redirect);
-
-
- If the argument is non-zero, indicates that an input pipe should be
- setup when the child process is created, giving the application the
- ability to send input to the process.
-
- DDDDAAAATTTTAAAA MMMMEEEEMMMMBBBBEEEERRRR DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- ____ccccmmmmdddd
- char* _cmd;
-
-
- The command to be executed.
-
- ____kkkkiiiillllllllCCCChhhhiiiillllddddOOOOnnnnEEEExxxxiiiitttt
- const int _killChildOnExit;
-
-
- Whether to set the child process options so that it terminates
- whenever the parent process terminates.
-
- ____rrrreeeeddddiiiirrrreeeeccccttttIIIInnnn
- int _redirectIn;
-
-
- Whether to setup an input pipe.
-
- eeeexxxxiiiittttCCCCaaaallllllllbbbbaaaacccckkkk
- static const const char* exitCallback;
-
-
- This callback is called when the child process exits. The callData
- is an integer (cast to type void *) that reports the exit status.
- This callback is passed on to an instance of VkSubProcess, so the
- VkCallbackObject passed as the first argument is actually an
- instance of VkSubProcess.
-
- ssssttttddddoooouuuuttttCCCCaaaallllllllbbbbaaaacccckkkk
- static const const char* stdoutCallback;
-
-
- This callback is called when the child process has output directed
- to stdout. The VkCallbackObject pointer passed as the first argument
- is a VkInput object, because this callback is passed down a chain of
- objects that ultimately ends with a VkInput object that handled
- input from stdout.
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- VVVVkkkkPPPPrrrrooooggggrrrraaaammmm((((3333xxxx)))) VVVVkkkkPPPPrrrrooooggggrrrraaaammmm((((3333xxxx))))
-
-
-
- ssssttttddddeeeerrrrrrrrCCCCaaaallllllllbbbbaaaacccckkkk
- static const const char* stderrCallback;
-
-
- This callback is called when the child process has output directed
- to stderr. The VkCallbackObject pointer passed as the first argument
- is a VkInput object, because this callback is passed down a chain of
- objects that ultimately ends with a VkInput object that handled
- input from stderr.
-
- IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
- callCallbacks() className(), addCallback(), removeCallback(),
- removeAllCallbacks(), hasCallbacks(), cloneCallbacks(),
- cloneCallback()
-
-
- KKKKNNNNOOOOWWWWNNNN DDDDEEEERRRRIIIIVVVVEEEEDDDD CCCCLLLLAAAASSSSSSSSEEEESSSS
- VVVVIIIIEEEEWWWWKKKKIIIITTTT 2222....1111 CCCCHHHHAAAANNNNGGGGEEEESSSS
- CCCCoooonnnnttttrrrroooollll FFFFuuuunnnnttttiiiioooonnnnssss
- virtual VkSubProcess run(VkScreen *screen);
-
-
- this additional API provides support for multi-screen
- applications...
-
- CCCCLLLLAAAASSSSSSSSEEEESSSS UUUUSSSSEEEEDDDD BBBBYYYY TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
- VkSubProcess
-
- BBBBUUUUGGGGSSSS
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- VkCallbackObject, VkSubProcess
- _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
- _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-